package cn.alusiaor.springbootaop.exception.enums.impl;


import cn.alusiaor.springbootaop.exception.enums.BaseExceptionEnum;

public enum AppExceptionEnum implements BaseExceptionEnum {

    NOT_ADD(1,"未添加"),
    NOT_UPDATE(2,"未修改");

    private Integer code;
    private String message;

    AppExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
